package nl.unimaas.micc.umsnooker.control.ai.generator;

import java.util.HashSet;

import com.jme.math.FastMath;

import nl.unimaas.micc.umsnooker.control.ai.EventGenerator;
import nl.unimaas.micc.umsnooker.domain.BilliardBall;
import nl.unimaas.micc.umsnooker.gameflow.GameState;
import nl.unimaas.micc.umsnooker.simulation.event.CueInteraction;
import nl.unimaas.micc.umsnooker.simulation.event.Event;

public class RandomCueInteractionGenerator implements EventGenerator
{
	@Override
	public Event generate(GameState state)
	{
		float angDest = FastMath.rand.nextFloat()*2*FastMath.PI;
		float angElev = 0;
		float transX = 0;
		float transY = 0;
		float velocity = FastMath.rand.nextFloat()*5f+.05f;
		
		return new CueInteraction(0, state.getCueBall(), angDest, angElev, transX, transY, velocity);
	}

}
